package com.sailfish.springbootdemo.service.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.RoadmapBigType;
import com.sailfish.springbootdemo.pojo.db1.RoadmapParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoadmapParamService {

    /**
     * 查询
     *
     * @param searchValue
     * @return
     */
    List<RoadmapParam> getAllRoadmapParam(String searchValue, Integer roadmapBigTypeId, Integer roadmapSmallTypeId);

    /**
     * 删除
     *
     * @param roadmapParamId
     * @return
     */
    Result deleteRoadmapParam(Integer roadmapParamId);

    /**
     * 新增或者更新
     *
     * @param mode
     * @param roadmapParam
     * @return
     */
    Result addOrUpdateRoadmapParam(String mode, RoadmapParam roadmapParam);

    Result updateRoadmapRule(Integer roadmapParamId, Integer valueAlgorithmType, String techDeviceParamKeys, Integer ruleAlgorithmType, Integer keyFromType);

    /**
     * 清除规则
     * @param roadmapParamId
     * @return
     */
    Result clearRoadmapParamRule(Integer roadmapParamId);
}
